import { ElImage } from 'element-plus'
import type { App } from 'vue'

export default {
  install(app: App<Element>) {
    ElImage.mixins = ElImage.mixins || []
    ElImage.mixins.push({
      setup() {
        debugger
      },
      watch: {
        'showViewer.value'(n) {
          debugger
        }
      },
      beforeCreate() {
        this.$options.props.onShow = function () {
          alert(1)
        }
        // console.log(this)
      },
      methods: {
        onShow() {
          alert(11)
        }
      }
    })
  }
}
